#!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''
@Project ：图灵学习 
@File    ：9.删除数据.py
@IDE     ：PyCharm 
@Author  ：ChenLiGao
@Date    ：2024-11-14 09:52
'''
from redis import Redis

with Redis() as db:
    result = db.delete("stu_name")
    print(result)

    print(db.keys())